package com.lesserpand.rabbitmq.quartz.service;

import com.lesserpand.rabbitmq.quartz.entity.dto.JobAndTriggerDTO;
import org.quartz.Job;

import java.util.List;
import java.util.Map;

/**
 * @author bailuo
 * @version 2.0
 * @Description TODO
 * @Date Created in 2019/1/19 16:38
 */
public interface JobAndTriggerService {

    List<JobAndTriggerDTO> getPageJob();

    JobAndTriggerDTO getPageJobmod();

    String addJob(Job job, String jobClassName, String jobGroupName, Map<String, Object> map, String cronExpression);

    void updateJob(String jobClassName, String jobGroupName, String cronExpression);

    void deleteJob(String jobClassName, String jobGroupName);

    void pauseJob(String jobClassName, String jobGroupName);

    void resumejob(String jobClassName, String jobGroupName);
}
